<template>
	<view class="user_integral">
		<navbar :showBack="true">积分记录</navbar>
		<view class="list">
			<view class="item acea-row row-between-wrapper" v-for="(item,index) in list" :key="index">
				<view>
					<view class="state">{{item.mark}}</view>
					<view>{{item.add_time}}</view>
				</view>
				<view class="num" :class="item.pm==1?'font-color':''">{{item.pm==1?'+':'-'}}{{item.number}}</view>
			</view>
		</view>
	</view>
</template> 

<script>
	import api from "@/api/api.js";
	export default{
		data(){
			return{
				list:[]
			}
		},
		onLoad() {
			this.getSignList()
		},
		methods:{
			getSignList:function(){
				const that = this;
				api.user.getIntegralList(1,100).then(e=>{
					if(e.status == 200){
						that.list = e.data
					}
				})
			}
		}
	}
</script>

<style>
	.user_integral .list{
		background-color: #fff;
		padding: 24rpx 30rpx;
	}
	.user_integral .list .item{
		height: 124rpx;
		border-bottom: 1rpx solid #eee;
		font-size: 24rpx;
		color: #999;
	}
	.user_integral .list .item .state{
		font-size: 28rpx;
		color: #282828;
		margin-bottom: 8rpx;
	}
	.user_integral .list .item .num{
		font-size: 36rpx;
		font-family: 'Guildford Pro';
	}
</style>
